package tms.sync.service;
import java.util.List;
import java.util.Map;

import tms.sync.dao.TmsSyncRealDao;
import tms.sync.dao.impl.TmsSyncRealDaoImpl;

public class TmsSyncRealService {
	
	private static TmsSyncRealService tmsSyncRealService;
	private TmsSyncRealDao tmsSyncRealDao;
	
	public TmsSyncRealService() {
		tmsSyncRealDao = new TmsSyncRealDaoImpl();
	}

	public static TmsSyncRealService getInstance(){
		if(tmsSyncRealService == null){
			tmsSyncRealService = new TmsSyncRealService();
		}
		return tmsSyncRealService;
	}
	
	public List<?> getUserInfo(String strUserId) throws Exception{
		return tmsSyncRealDao.getUserInfo(strUserId);
	}

	public List<?> getDeptInfo(Map voMapDeptSearchParam) {
		return tmsSyncRealDao.getDeptInfo(voMapDeptSearchParam);
	}
}
